package org.scau.studentevaluation.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * @ClassName: ValidationConfig
 * @Description: TODO 参数校验处理器
 * @Author: sunslikes
 * @Date: 2020/9/2 1:31
 * @Version: 1.0
 */
@Configuration
public class ValidationConfig {
    @Bean
    public MethodValidationPostProcessor methodValidationPostProcessor() {
        return new MethodValidationPostProcessor();
    }
}
